/**
 * Copyright 2015 jianglibo@gmail.com
 *
 */
package com.m3958.logcollector.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * for cross database schema useage.
 * @author jianglibo@gmail.com
 *         2015年12月22日
 *
 */
@Entity
@Table(name = "seq_out_of_jpa")
@SequenceGenerator(name="seq_out_of_jpa", initialValue=1, allocationSize=100)
public class SeqOutOfJpa {
    
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="seq_out_of_jpa")
    private long id;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
